interface LoginAPIData {
  code: string
}

interface LoginAPIResData {
  code: number
  data: string
  msg: string
  time: string
}

/**
 * @description 认证手机号
 */
export function getPhoneNumberAPI(data: LoginAPIData, token: string) {
  return httpInstance.post<LoginAPIResData, LoginAPIData>(
    '/api/user/getPhoneNumber',
    data,
    { headers: { token } },
  )
}
